From 5408fd7d26b33df4d3563defe98c223c85dee46d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 20 Mar 2015 17:48:25 -0700 Subject: [PATCH] Remove an extraneous is_test condition If a profile's `test` flag is set to true, then it will always generate a unit test so the `is_test` check is redundant. --- src/cargo/ops/cargo_rustc/fingerprint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/ops/cargo_rustc/fingerprint.rs b/src/cargo/ops/cargo_rustc/fingerprint.rs index 62407846e..213a81c01 100644 --- a/src/cargo/ops/cargo_rustc/fingerprint.rs +++ b/src/cargo/ops/cargo_rustc/fingerprint.rs @@ -62,7 +62,7 @@ pub fn prepare_target<'a, 'b>(cx: &mut Context<'a, 'b>, let dst = root.join(filename); missing_outputs |= fs::metadata(&dst).is_err(); - if target.is_test() || profile.test { + if profile.test { cx.compilation.tests.push((target.name().to_string(), dst)); } else if target.is_bin() { cx.compilation.binaries.push(dst); -- 2.30.2